home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The SelectWare System Volume 5 #4
/
The SelectWare System Volume 5 #4.iso
/
swt
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1993-08-26
|
5KB
|
175 lines
echo off
cls
if "%1" == "" goto instructions
if "%1" == "a:" goto diskok
if "%1" == "A:" goto diskok
if "%1" == "b:" goto diskok
if "%1" == "B:" goto diskok
if "%1" == "c:" goto diskok
if "%1" == "C:" goto diskok
if "%1" == "d:" goto diskok
if "%1" == "D:" goto diskok
if "%1" == "e:" goto diskok
if "%1" == "E:" goto diskok
if "%1" == "f:" goto diskok
if "%1" == "F:" goto diskok
if "%1" == "g:" goto diskok
if "%1" == "G:" goto diskok
if "%1" == "h:" goto diskok
if "%1" == "H:" goto diskok
if "%1" == "i:" goto diskok
if "%1" == "I:" goto diskok
if "%1" == "j:" goto diskok
if "%1" == "J:" goto diskok
if "%1" == "k:" goto diskok
if "%1" == "K:" goto diskok
if "%1" == "l:" goto diskok
if "%1" == "L:" goto diskok
if "%1" == "m:" goto diskok
if "%1" == "M:" goto diskok
if "%1" == "n:" goto diskok
if "%1" == "N:" goto diskok
if "%1" == "o:" goto diskok
if "%1" == "O:" goto diskok
if "%1" == "p:" goto diskok
if "%1" == "P:" goto diskok
if "%1" == "q:" goto diskok
if "%1" == "Q:" goto diskok
if "%1" == "r:" goto diskok
if "%1" == "R:" goto diskok
if "%1" == "s:" goto diskok
if "%1" == "S:" goto diskok
if "%1" == "t:" goto diskok
if "%1" == "T:" goto diskok
if "%1" == "u:" goto diskok
if "%1" == "U:" goto diskok
if "%1" == "v:" goto diskok
if "%1" == "V:" goto diskok
if "%1" == "w:" goto diskok
if "%1" == "W:" goto diskok
if "%1" == "x:" goto diskok
if "%1" == "X:" goto diskok
if "%1" == "y:" goto diskok
if "%1" == "Y:" goto diskok
if "%1" == "z:" goto diskok
if "%1" == "Z:" goto diskok
:instructions
echo
echo
echo The SelectWare System
echo
echo
echo Batch Installation Procedure:
echo -----------------------------
echo To install the runtime portion of The SelectWare System
echo on your hard disk drive, type:
echo
echo "INSTALL H:"
echo Where H is the hard disk drive letter
echo
echo Example:
echo
echo "INSTALL D:" will install The SelectWare System to
echo D:\SWTDEMOS on the "D:" hard disk drive.
echo
echo NOTE: This installation requires 1.5 MB free space.
echo
goto exit
:diskok
dskfree %1 1500000
if errorlevel=1 goto spacebad
if errorlevel=0 goto spaceok
:spacebad
echo
echo
echo The SelectWare System
echo
echo
echo Batch Installation Error -- Not enough hard drive space:
echo --------------------------------------------------------
echo To install the runtime portion of The SelectWare System
echo requires 1.5 MB of free space on your hard disk drive.
echo
echo The "%1" drive you selected does not have enough free space
echo to copy all the necessary files.
echo
echo Please remove any unnecessary files from "%1" or select
echo another hard disk drive letter.
echo
echo
goto exit
:spaceok
echo
echo
echo The SelectWare System
echo
echo
echo Batch Installation Procedure:
echo -----------------------------
echo This procedure will:
echo
echo 1. Create a directory %1\SWTDEMOS
echo 2. Create a directory %1\SWTDEMOS\SWT
echo 3. Create a directory %1\SWTDEMOS\DEMO
echo 4. Copy SelectWare System to %1\SWTDEMOS
echo 5. Copy data files to %1\SWTDEMOS\SWT
echo
echo To quit type "Ctrl-C", or
pause
cls
echo Installing The SelectWare System:
echo ---------------------------------
echo
echo Creating directories
swtmd %1\SWTDEMOS
swtmd %1\SWTDEMOS\SWT
swtmd %1\SWTDEMOS\DEMO
echo
echo Copying SelectWare System Files
echo Copying SWSTART.EXE to %1\SWTDEMOS\SWSTART.EXE
copy \swstart.exe %1\swtdemos >NUL
echo Copying SW.EXE to %1\SWTDEMOS\SW.EXE
copy \sw.exe %1\swtdemos >NUL
echo Copying GOSW.BAT to %1\SWTDEMOS\GOSW.BAT
copy \gosw.bat %1\swtdemos >NUL
echo Copying GOSW.BAT to %1\
copy \gosw.bat %1\ >NUL
echo
echo Copying Data Files
echo Copying SWRT.CFG to %1\SWTDEMOS\SWT\SWRT.CFG
copy swrt.cfg %1\swtdemos\swt >NUL
echo Copying SWRT.TXT to %1\SWTDEMOS\SWT\SWRT.TXT
copy swrt.txt %1\swtdemos\swt >NUL
echo Copying SWRT.PRD to %1\SWTDEMOS\SWT\SWRT.PRD
copy swrt.prd %1\swtdemos\swt >NUL
echo Copying SWRT.GRX to %1\SWTDEMOS\SWT\SWRT.GRX
copy swrt.grx %1\swtdemos\swt >NUL
echo Copying RTWINSTL.EXE to %1\SWTDEMOS\SWT\RTWINSTL.EXE
copy rtwinstl.exe %1\swtdemos\swt >NUL
cls
echo
echo
echo The SelectWare System
echo
echo
echo Installation Complete:
echo ----------------------
echo To run The SelectWare System from the hard disk drive,
echo type:
echo
echo "GOSW" from the root directory of "%1"
echo or,
echo "SWSTART" from the "%1\SWTDEMOS" directory
echo
echo Enjoy . . .
echo
echo
echo
echo The SelectWare System
echo The Ultimate Software Demonstration System
echo
echo
echo
:exit
exit